package com.tuyrt.`as`.proj.main.http.api

import com.tuyrt.`as`.proj.main.model.Subcategory
import com.tuyrt.`as`.proj.main.model.TabCategory
import com.tuyrt.hi.library.restful.HiCall
import com.tuyrt.hi.library.restful.annotation.GET
import com.tuyrt.hi.library.restful.annotation.Path

/**
 *
 */
interface CategoryApi {

    @GET("category/categories")
    fun queryCategoryList(): HiCall<List<TabCategory>>

    @GET("category/subcategories/{categoryId}")
    fun querySubcategoryList(@Path("categoryId") categoryId: String): HiCall<List<Subcategory>>
}